package jwr.ex4;

public class Shiritori extends ShiritoriVO implements ShiritoriService{
	private String names[];
	int cnt=0;
	int maxCnt;
	public int getCnt(){
		return cnt;
	}
	public void setMaxCnt(int maxCnt){
		this.maxCnt = maxCnt;
	}
	
	public Shiritori(int i) {
		names = new String[i];
		setMaxCnt(maxCnt);
	}
	
	public String getNames(int cnt) {
		return names[cnt];
	}

	public void setNames(String name) {
		names[getCnt()] = name;
	}

	@Override
	public boolean check() {
		boolean ck=true;
		if(getSecondWord().equals("")){
			
		}
		return true;
	}
	
}
